package com.leileimann.tour.entity;

import org.neo4j.ogm.annotation.NodeEntity;

import java.util.List;

/**
 * @author leileiMann
 * @date 2022/3/2 2:04
 */
@NodeEntity
public class User {
    private Long id;
    private String username;
    private String address;
    private String tel;
    private String sex;
    private String age;
    private String password;
    private List<User> users;

    public User(String username, String address, String tel, String sex, String age, String password) {
        this.username = username;
        this.address = address;
        this.tel = tel;
        this.sex = sex;
        this.age = age;
        this.password = password;
    }

    public User() {}

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public List<User> getUsers() {
        return users;
    }

    public void setUsers(List<User> users) {
        this.users = users;
    }

    @Override
    public String toString() {
        return "User{" +
                "username='" + username + '\'' +
                ", address='" + address + '\'' +
                ", tel='" + tel + '\'' +
                ", sex='" + sex + '\'' +
                ", age='" + age + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
